import { getMineAsyn } from '@/api/asyn'
Page({
  data: {
    vipData: {},
    account: {}
  },

  onLoad() {
    this.getAllData()
  },
  async getAllData() {
    const res = await getMineAsyn()
    this.setData({
      account: {
        balanceIntegral: res[0].data.balanceIntegral,
        balanceRmb: res[0].data.balanceRmb,
        couponCount: res[0].data.couponCount
      },
      vipData:res[1].data
    })
  }
})